#include "demo.h"

BOOL WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE hPreInstance, LPTSTR szCmdLine, int nShowCmd)
{
	const TCHAR* szClsName	= _T("Win32_APP");
	const TCHAR* szCaption	= _T("Win32 APP");

	if (RegisterWndClass(hInstance, szClsName) )
	{ 
		HWND hWnd = CreateWnd(hInstance, szClsName, szCaption);
		if (NULL != hWnd && IsWindow(hWnd))
		{
			ShowWnd(hWnd);

			RunMessageLoop();
		}
	}

	return TRUE;
}